﻿@model Huirui.Cavan.Presentation.ViewModel.SystemModule.IEmployeeViewModel
@{
    var selectEmployeeWindow = "selectEmployeeWindow" + Model.Purpose;
    var employeeTableid = "employees" + Model.Purpose;
    var doSelectEmployee = "doSelectEmployee" + Model.Purpose;
}
<div id="@selectEmployeeWindow" class="easyui-window" data-options="closed:true,minimizable:false,maximizable:false,collapsible:false,title:'@Html.Raw("选择职工")',modal:true" style="width: 900px; height: 600px; padding: 2px;">
    @using (Html.BeginForm(ActionConst.SEARCH, ControllerConst.EMPLOYEE, FormMethod.Post, new { id = "searchEmployee" + Model.Purpose }))
    { 
        <input type="submit" value="搜索" />
        @Html.TextBoxFor(m => m.SearchParam.Name)
    }

    <a href="#" id="@doSelectEmployee" class="easyui-linkbutton" iconcls="icon-ok" plain="true">确定职员</a>
    <table id="@employeeTableid" title="职员列表">
    </table>
</div>
